package com.tiger.project.mapper;

import java.util.List;

import com.tiger.project.domain.ContractBill;
import com.tiger.project.domain.ContractSponsorCredit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;


/**
 * 租金减免Mapper接口
 *
 * @author standard
 * @date 2022-11-09
 */
@Component
public interface ContractSponsorCreditMapper {
    /**
     * 查询租金减免
     *
     * @param id 租金减免主键
     * @return 租金减免
     */
    public ContractSponsorCredit selectContractSponsorCreditById(Long id);

    /**
     * 查询租金减免列表
     *
     * @param contractSponsorCredit 租金减免
     * @return 租金减免集合
     */
    public List<ContractSponsorCredit> selectContractSponsorCreditList(ContractSponsorCredit contractSponsorCredit);

    /**
     * 新增租金减免
     *
     * @param contractSponsorCredit 租金减免
     * @return 结果
     */
    public int insertContractSponsorCredit(ContractSponsorCredit contractSponsorCredit);

    /**
     * 修改租金减免
     *
     * @param contractSponsorCredit 租金减免
     * @return 结果
     */
    public int updateContractSponsorCredit(ContractSponsorCredit contractSponsorCredit);

    /**
     * 删除租金减免
     *
     * @param id 租金减免主键
     * @return 结果
     */
    public int deleteContractSponsorCreditById(Long id);

    /**
     * 批量删除租金减免
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteContractSponsorCreditByIds(Long[] ids);

    /**
     *  租金减免 收款账期
     */
    public List<Integer> selectRentPeriods(Long id);


}
